Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-16755 C++ Thin: Add user threadpool size to public configuration #9960

Closed
wants to merge 6 commits into from

Conversation

isapego
Copy link
Contributor

@isapego isapego commented Apr 11, 2022

  1. Added user thread pool size configuration option to IgniteClientConfiguration
  2. Added tests

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@@ -743,6 +743,13 @@ namespace ignite
* @return Number of logical processors.
*/
IGNITE_IMPORT_EXPORT uint32_t GetNumberOfProcessors();

/**
* Get current processor thread count.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Get current processor thread count.
* Get current process thread count.

/**
* Get current processor thread count.
*
* @return Current processor thread count.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return Current processor thread count.
* @return Current process thread count.

@@ -652,6 +653,13 @@ namespace ignite
* @return Number of logical processors.
*/
IGNITE_IMPORT_EXPORT uint32_t GetNumberOfProcessors();

/**
* Get current processor thread count.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Get current processor thread count.
* Get current process thread count.

/**
* Get current processor thread count.
*
* @return Current processor thread count.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return Current processor thread count.
* @return Current process thread count.

server.PushHandshakeResponse(true);
server.Start();

int32_t threadsBefore = ignite::common::concurrent::GetThreadsCount();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetThreadsCount is used only for tests, should we keep it in the common module?

@asfgit asfgit closed this in e45a297 Apr 12, 2022
xintrian pushed a commit to xintrian/ignite that referenced this pull request May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants